package magicloan.auctionpocket.ui.activity;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import java.util.ArrayList;
import magicloan.auctionpocket.R;
import magicloan.auctionpocket.adapter.AssetsAdapter;
import magicloan.auctionpocket.bean.ProduceBean;
import magicloan.auctionpocket.ui.base.BaseActivity;

/**
 * Created by hechao on 2018/2/1.
 */
public class RechargeActivity extends BaseActivity {

    private AssetsAdapter mAdapter ;
    private ArrayList<ProduceBean> mReDateList ;

    @Override
    protected int setContentView() {
        return R.layout.ac_recharge;
    }

    @Override
    protected void beforeInitView() {
        mAdapter = new AssetsAdapter(R.layout.ac_recharge_item, mActivity);
        mAdapter.openLoadAnimation(BaseQuickAdapter.ALPHAIN);

        mReDateList = new ArrayList<>() ;
        for ( int i = 0 ; i < 5 ; i ++ ){
            ProduceBean instance = new ProduceBean();
            mReDateList.add(instance);
        }

    }

    @Override
    protected void afterInitView() {

        setTitle("充值",null);

        RecyclerView re_right = (RecyclerView) mContentView.findViewById(R.id.recylerv);
        LinearLayoutManager layoutManager_right = new LinearLayoutManager(mContext);
        re_right.setLayoutManager(layoutManager_right);
        re_right.setAdapter(mAdapter);
        mAdapter.addData(mReDateList);
        mAdapter.notifyDataSetChanged();

    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initView() {

    }

}
